import http from '@/services/http';

export function getAllList<T>() {
  return http.post<Requestor.Response<T>>('/api/admin/GroupBase/all/list');
}

export function create(params: GroupBaseManagementApi.CreateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/GroupBase/create', {
    data: params,
  });
}
export function update(params: GroupBaseManagementApi.UpdateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/GroupBase/update', {
    data: params,
  });
}
export function remove(params: GroupBaseManagementApi.DeleteParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/GroupBase/delete', {
    data: params,
  });
}
